package com.cti.commons.delayqueue.config;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.core.annotation.AliasFor;

/**
 * @author et.wang
 * @description: 延时队列消息接收注解
 * @date 2022/11/18 17:30
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Documented
public @interface DelayQueueListener {

    /**
     * 定义的topic
     */
    @AliasFor("value")
    String topic() default "";

    @AliasFor("topic")
    String value() default "";

}
